package com.project.service;


import com.project.common.ServerResponse;
import com.project.pojo.User;
import org.springframework.web.multipart.MultipartFile;

import java.io.File;
import java.util.List;

public interface UserService {

    ServerResponse<User> checkLogin(String username,String password);

    User findUserByUserName(String username);

    ServerResponse<String> createUser(User user);

    ServerResponse<String> checkUser(String username);

    ServerResponse<User> updateUserInfo(User user);

    ServerResponse logout(String token);

    ServerResponse<String> uploadHeadImg(File file, Integer userId);

    List<User> myAllStudent(User currentUser);

    int deleteUserById(int id);

    int updateStuInfo(User user);
}
